package com.imooc.article.service;

import com.imooc.pojo.Article;
import com.imooc.pojo.vo.ArticleDetaiVO;
import com.imooc.utils.PagedGridResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticlePortalService {
    /**
     * 门户端所有的文章列表
     * @param keyword
     * @param page
     * @param pageSize
     * @param category
     * @return
     */
    public PagedGridResult articleProtalList(String keyword,
                                             Integer page,
                                             Integer pageSize,
                                             Integer category);

    /**
     * 门户端所有文章的近期佳文
     * @return
     */
    List<Article> getHotList();

    /**
     * 作家主页文章列表
     * @param writerId
     * @param page
     * @param pageSize
     * @return
     */
    PagedGridResult writerArticleList(String writerId,
                                      Integer page,
                                      Integer pageSize);

    PagedGridResult writerHotArticleList(String writerId);

    ArticleDetaiVO getArticleDetaiVO(String articleId);

    void readArticle(String articleId, HttpServletRequest request);

}


